home *** CD-ROM | disk | FTP | other *** search
- Path: iz.maus.de!Torsten_Landschoff
- From: Torsten_Landschoff@iz.maus.de (Torsten Landschoff)
- Newsgroups: comp.lang.c++
- Subject: Re: GNU question
- Message-ID: <199603130938.a35758@iz.maus.de>
- Date: Wed, 13 Mar 96 07:38:00 GMT
- References: <Pine.SOL.3.91-941213.960312113456.29919A-100000@deneb.dur.ac.uk>
- X-Gate: MausGate/News 1.25/ac3
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
-
- Hi Matthew
-
- MS>randomize(); // seed random number generator
-
- This function is not available in Gnu C. You should use srand( time(NULL) )
- instead.
-
- MS>r = random(lines);
-
- Use r = rand() % lines;
-
- cu
- Torsten
-